package com.hawthorn.admin.service.sysjob;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
 * <p>todo 定时配置服务</p>
 * @author: andy.ten@tom.com | xukaixing@hotmail.com
 * @created: 2022/8/6 09:16
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
public interface SysJobService
{
  IPage<Map<String, Object>> findJobs(Page<Map<String, Object>> page, String conditions);

  IPage<Map<String, Object>> findJobLogsById(Page<Map<String, Object>> page, String conditions);

  Map<String, Object> saveJob(Map<String, Object> param);

  Map<String, Object> updateJob(Long id, Map<String, Object> param);

  void resumeJob(Long id);

  void pauseJob(Long id);

  void runJobNow(Long id);
}
